const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
   
  //配置开发环境时的 服务器
  devServer: {
    //作代理，解决接口跨域问题
    proxy: {
      '/api': {
        target: 'http://localhost:3000',
        changeOrigin: true,
        secure: false,
        pathRewrite: {
          '^/api': ''
        } 
      }
    }
  }
  
})
